﻿using mvc_repete.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace mvc_repete.Controllers
{
    public class KitchenController : Controller
    {
        // GET: Kitchen
        public ActionResult Index()
        {
            ChoresVm cVm = new ChoresVm();
            cVm.KitChores = MockDb.GetKitchen();
            return View(cVm);
        }

        public ActionResult Detail(int id)
        {
            ChoreObjVm cVm = new ChoreObjVm();
            cVm.Kit = MockDb.GetKitchen().FirstOrDefault(k => k.Id == id);
            return View(cVm);
        }
    }
}